package fr.n7.sma.util;

public class Position {

	public int x;
	public int y;
	
	public Position(int x, int y) {
		this.x = x;
		this.y = y;
	}
	
	public Position(int[] pos) {
		this.x = pos[0];
		this.y = pos[1];
	}
	
	public int getX() {
		return x;
	}
	
	public void setX(int x) {
		this.x = x;
	}
	
	public int getY() {
		return y;
	}
	
	public void setY(int y) {
		this.y = y;
	}
	
	public boolean equals(Position p) {
		return this.x == p.x && this.y == p.y;
	}
	
	public String toString() {
		return "("+x+", "+y+")";
	}
}
